#pragma once
#include "Sprite.h"
#include "Vector.h"
#include "Matrix.h"

class BoundingBox
{
public:

	BoundingBox(Sprite *aSprite);

	BoundingBox();
	
	~BoundingBox();

	void updateBox();

	void drawBounding();

	bool checkBoxCollision(BoundingBox *other);
	
	/*bool aboveBox(BoundingBox *other);*/

	float getTopY();

	bool withinBox(BoundingBox *other);
	void setScale(float S);
	/*bool leftSideCollision(BoundingBox *other);
	bool rightSideCollision(BoundingBox *other);*/
	bool topCollision(BoundingBox *other);
	bool bottomCollision(BoundingBox *other);
	bool collided;
private:
	Sprite *theSprite;
	float x, y, width, height, scale;
	Vector *top, *bottom, *left, *right;
	
};

